<?php
class StockModel extends CommonModel {
    protected $_validate = array(
        array('number','require','库存数量必须填写',1,'',3),
        array('product_id','number','产品必须填写',1,'',3),
    );
}
?>
